import { createApp } from 'vue'
import App from './App.vue'
import store from './store'
import router from './router'
import './style.css'
import ElementPlus from 'element-plus'
import * as ElementPlusIcons from '@element-plus/icons-vue'
import '@/styles/dark/index.scss'

let instance: ReturnType<typeof createApp> | null = null

instance = createApp(App)
// 注册所有图标组件
for (const [key, component] of Object.entries(ElementPlusIcons)) {
  instance.component(key, component)
}
instance.use(store)
instance.use(ElementPlus)
instance.use(router)
instance.mount('#app')
